﻿<Window x:Class="KTVConsole2.UI.ReadPlayList"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="读取列表" Height="514" Loaded="Window_Loaded" KeyDown="Window_KeyDown" FontSize="24" >
    <Grid>
        <StackPanel Orientation="Horizontal" Margin="12">
        <ComboBox Height="38" Name="comboBox1" VerticalAlignment="Top" SelectionChanged="comboBox1_SelectionChanged" DisplayMemberPath="Title" TabIndex="1" SelectedIndex="0" Width="500"/>
        <Button Content="读取" Height="38" HorizontalAlignment="Left" Name="btnRead" VerticalAlignment="Top" Width="75" Click="btnRead_Click" TabIndex="2" Margin="12,0,12,0" />
        <Button Content="删除" Height="38" HorizontalAlignment="Right" Name="btnDelete" VerticalAlignment="Top" Width="75" Click="btnDelete_Click" TabIndex="3" />
        </StackPanel>
        <ListView Height="387" HorizontalAlignment="Left" Margin="12,76,0,0" Name="listView1" VerticalAlignment="Top" ItemsSource="{Binding ElementName=comboBox1, Path=SelectedItem.Songs, Mode=TwoWay}" MouseDoubleClick="listView1_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="歌曲" Width="550" DisplayMemberBinding="{Binding Path=SongName}"/>
                    <GridViewColumn Header="歌星" Width="120" DisplayMemberBinding="{Binding Path=Star}"/>
                </GridView>
            </ListView.View>
        </ListView>

    </Grid>
</Window>
